//
//  SWHistoryCell.m
//  ShiWu
//
//  Created by liujianlong on 2022/7/29.
//

#import "SWHistoryCell.h"

@implementation SWHistoryCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.layer.masksToBounds = false;
    self.layer.shadowColor = [UIColor colorWithHexString:@"999999"].CGColor;
    self.layer.shadowOffset = CGSizeMake(0, 1);
    self.layer.shadowRadius = 4;
    self.layer.shadowOpacity = 0.6;
}
- (void)setModel:(SWModel *)model
{
    _model = model;
    self.img.image = [UIImage imageWithData:model.imgdata];
    self.name.text = model.name;
    self.time.text = model.time;
}

@end
